package com.bank.server.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/helloServer")
public class HelloServer {
    protected Logger logger = LoggerFactory.getLogger(HelloServer.class);
    @RequestMapping(value = "/serverHello",method = {RequestMethod.GET,RequestMethod.POST})
    public String serverHello(String name){
        logger.info("invoked name = " + name);
        return "hello " + name;
    }
}
